<form method="post" action="" class="pageForm required-validate">
    <div class="pageContent">
    <div class="pageFormContent">
        <fieldset>
        <dl>
            <dt><@label key='productionOrderNum.C,colon'>生产订单编号：</@label></dt>
            <dd><input type="text" name="productionOrderNum" class="required" value="${details.productionOrderNum!''}" readonly="readonly"/></dd>
        </dl>
        <dl>
            <dt><@label key='orderType.C,colon'>订单类型：</@label></dt>
            <dd><input type="text" name="orderTypeCode" class="required" value="${details.orderTypeText!''}" readonly="readonly"/>
            </dd>
        </dl>
        <dl>
            <dt><@label key='orderStatusECode.C,colon'>订单状态：</@label></dt>
            <dd><select name="statuseCode" disabled="disabled">
                    <option value="" ><@label key='all.C'>所有</@label></option>
                    <#if orderStatusECode??>
                        <#list orderStatusECode as ecode>
                            <option value="${ecode.eCode!''}" <#if details.statusECode?? && details.statusECode == ecode.eCode> selected</#if> >${ecode.eCodeText!''}</option>
                        </#list>
                    </#if>
                </select>
            </dd>
        </dl>
        <dl>
            <dt><@label key='materialCode.C,colon'>物料编号：</@label></dt>
            <dd>
                <input name="materialCode" value="" type="hidden"/>
                <input class="required" name="materialLookup.materialCode" type="text" postField="componentText" value="${details.materialCode!''}" readonly="readonly" />
            </dd>
        </dl>
        <dl>
            <dt><@label key='materialText.C,colon'>物料名称：</@label></dt>
            <dd><input name="materialLookup.materialText" type="text" value="${details.materialText!''}" readonly="readonly"/></dd>
        </dl>
        <dl>
            <dt><@label key='process.C,colon'>工艺：</@label></dt>
            <dd><select id="pp_processCode" name="processCode" class="required" disabled="disabled">
                    <option value="${details.processCode!''}" selected>${details.processText!''}</option>
                </select>
            </dd>
        </dl>
        <dl>
            <dt><@label key='plannedQuantity.C,colon'>计划数量</@label></dt>
            <dd><input type="text" name="plannedQuantity" class="required number" readonly="readonly" value="${details.plannedQuantity!''}"/></dd>
        </dl>
        <dl>
            <dt><@label key='requirementDate.C,colon'>需求日期：</@label></dt>
            <dd><input type="text" name="requirementDate" class="required" readonly="readonly" value="${(details.requirementDate?string('yyyy-MM-dd'))?if_exists}"/></dd>
        </dl>
        <dl>
            <dt><@label key='productionlotNum.C,colon'>生产批次号：</@label></dt>
            <dd><input type="text" name="productionlotNum" value="${details.productionlotNum!''}" readonly="readonly"/></dd>
        </dl>
        <dl>
            <dt><@label key='plannedstartDateTime.C,colon'>计划开始时间：</@label></dt>
            <dd><input type="text" name="plannedstartDateTime" class="required" value="${(details.plannedstartDateTime?string('yyyy-MM-dd HH:mm:ss'))?if_exists}"
             readonly="readonly"/></dd>
        </dl>
        <dl>
            <dt><@label key='plannedendDateTime.C,colon'>计划结束时间：</@label></dt>
            <dd><input type="text" name="plannedendDateTime" class="required" value="${(details.plannedendDateTime?string('yyyy-MM-dd HH:mm:ss'))?if_exists}" readonly="readonly"/></dd>
        </dl>
        <dl>
            <dt><@label key='actualstartDateTime.C,colon'>实际开始时间：</@label></dt>
            <dd><input type="text" name="actualstartDateTime" class="required" value="${(details.actualstartDateTime?string('yyyy-MM-dd HH:mm:ss'))?if_exists}" readonly="readonly"/></dd>
        </dl>
        <dl>
            <dt><@label key='actualendDateTime.C,colon'>实际结束时间：</@label></dt>
            <dd><input type="text" name="actualendDateTime" class="required" value="${(details.actualendDateTime?string('yyyy-MM-dd HH:mm:ss'))?if_exists}" readonly="readonly"/></dd>
        </dl>
        <dl>
            <dt><@label key='completedQuantity.C,colon'>完工数量：</@label></dt>
            <dd><input type="text" name="completedQuantity" class="required number" readonly="readonly" value="${details.completedQuantity!''}"/></dd>
        </dl>
        <dl>
            <dt><@label key='scrappedQuantity.C,colon'>报废数量：</@label></dt>
            <dd><input type="text" name="scrappedQuantity" class="required number" readonly="readonly" value="${details.scrappedQuantity!''}"/></dd>
        </dl>
        <dl>
            <dt><@label key='repairQuantity.C,colon'>返修数量：</@label></dt>
            <dd><input type="text" name="repairQuantity" class="required number" readonly="readonly" value="${details.repairQuantity!''}"/></dd>
        </dl>
        </fieldset>
    </div>
    <div class="tabs">
        <div class="tabsHeader">
            <div class="tabsHeaderContent">
                <ul>
                    <li id="component" data-selectedid="processOperation_component" class="exerInputS"><a href="javascript:;" id="select1"><span>报工历史记录</span></a></li>
                </ul>
            </div>
        </div>
        <div class="tabsContent">
            <div>
                <table class="table" width="100%" layoutH="140">
        <thead>
            <tr>
                <th width="40"><@label key="serialNumber.C">序号</@label></th>
                <th width="100"><@label key="confirmDateTime.C">报工时间</@label></th>
                <th width="100"><@label key="confirmUser.C">报工人</@label></th>
                <th width="80"><@label key='completedQuantity.C'>完工数量</@label></th>
                <th width="80"><@label key='scrappedQuantity.C'>报废数量</@label></th>
                <th width="80"><@label key='repairQuantity.C'>返修数量</@label></th>
            </tr>
        </thead>
        <tbody>
        <#if confirms??><#if (confirms?size>0 )>
            <#list confirms as confirm>
            <tr>
                <td>${confirm_index + 1}</td>
                <td>${(confirm.confirmDateTime?string("yyyy-MM-dd HH:mm:ss"))?if_exists}</td>
                <td>${confirm.confirmUser!''}</td>
                <td>${confirm.completedQuantity!''}</td>
                <td>${confirm.scrappedQuantity!''}</td>
                <td>${confirm.repairQuantity!''}</td>
            </tr>
        </#list>
        </#if>
        <#else>
        <tr>
                <td colspan="6" class="noData">======<@label key='noListData.C'>列表无数据</@label>=====</font></td>
        </tr>
        </#if>
        </tbody>
    </table>
            </div>
        </div>
    </div>
    <div class="formBar">
        <ul>
            <li>
                <div class="buttonActive"><div class="buttonContent"><button type="button" class="close">关闭</button></div></div>
            </li>
        </ul>
    </div>
    </div>
</form>
